package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName : WechatAttachmentFeign
 * @Author : Lenovo
 * @Date: 2021/7/23 15:12
 * @Description :
 */
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatAttachmentFeign {
    @PostMapping("/wechat/attachmgr/addattach")
    String addAttach(@RequestParam("uploadType") String uploadType,@RequestParam("fileType") String fileType,@RequestParam("request") HttpServletRequest request,@RequestParam("jsonObject") JSONObject jsonObject);
    @PostMapping("/wechat/attachmgr/uploadimage")
    String uploadImage(@RequestParam("request") HttpServletRequest request,@RequestParam("response")  HttpServletResponse response);
    @PostMapping("/wechat/attachmgr/uploadcredentials")
    String uploadCredentials(@RequestParam("request")HttpServletRequest request,@RequestParam("response") HttpServletResponse response,@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("uploadType") String uploadType,@RequestParam("fileType") String fileType);
    @PostMapping("/wechat/attachmgr/uploadvideo")
    String uploadVideo(@RequestParam("request")HttpServletRequest request,@RequestParam("response") HttpServletResponse response,@RequestParam("jsonObject") JSONObject jsonObject);
}
